package Demo;

public class Demo1 {
    public static void main(String[] args) {
        int[] arr = {1, 5, 2, 8, 6, 1, 6, 9, 0, 4, 4, 7, 9, 5};
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr.length - 1; j++) {
                if (arr[i] < arr[j]) {
                    int a = arr[i];
                    arr[i] = arr[j];
                    arr[j] = a;
                }
            }
        }

        for (int i : arr) {
            System.out.println(i);
        }
    }
}
